package cn.com.taurus.biz;

import cn.com.taurus.entity.ClientAccount;
import cn.com.taurus.impl.ClientAccountImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
/**
 * @author zhy
 * @createTime 2021-6-3 20:49:18
 * @remark 客户账户Biz层
 * @version 1.0
 */
@Service
public class ClientAccountBiz{
    @Autowired
    ClientAccountImpl clientAccountImpl;

    
    public int clientAccountAccountStatusUpdate(String accountStatus, Integer caId) {
        return clientAccountImpl.clientAccountAccountStatusUpdate(accountStatus,caId);
    }

    
    public int clientAccountFrozenMoneyUpdate(Double frozenMoney, Integer caId) {
        return clientAccountImpl.clientAccountFrozenMoneyUpdate(frozenMoney,caId);
    }
    public Integer selectCaIdByCid(Integer cId) {
        return clientAccountImpl.selectCaIdByCid(cId);
    }
    public Integer selectBuyPasswordByCId(Integer cId) {
        return clientAccountImpl.selectBuyPasswordByCId(cId);
    }
    public ClientAccount selectAllPurse(Integer cid) {
        return clientAccountImpl.selectAllPurse(cid);
    }
    public Integer clientAccountUpdate(ClientAccount clientAccount){
        return clientAccountImpl.clientAccountUpdate(clientAccount);
    }
    public Integer selectCIdByCaId(Integer caId){return clientAccountImpl.selectCIdByCaId(caId);}


    public Double selectOverAllAssetByCaId(Integer caId) {
        return clientAccountImpl.selectOverAllAssetByCaId(caId);
    }

    public Integer chargeMoney(Double overAllAsset, Integer caId) {
        return clientAccountImpl.chargeMoney(overAllAsset,caId);
    }

}

